package net.sinodata.smartframework.exception;

/**
 * Description: 顶级自定义异常类
 * 
 * @author: yinliangyun
 * @date: 2021-5-18
 */
public class BaseException extends RuntimeException {

	private static final long serialVersionUID = 1L;
	
	/** 状态码 */
	private int status;

	public BaseException() {
	}

	public BaseException(String message, int status) {
		super(message);
		this.status = status;
	}

	public BaseException(String message) {
		super(message);
	}

	public BaseException(String message, Throwable cause) {
		super(message, cause);
	}

	public BaseException(Throwable cause) {
		super(cause);
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
}
